export default {
  namespaced: true,
  state: {
    token: localStorage.getItem('token') || ''
  },
  mutations: {
    setToken(state, payload) {
      state.token = payload
      localStorage.setItem('token', payload)
    },
    removeToken(state) {
      state.token = ''
      localStorage.setItem('token', '')
    }
  },
  actions: {},
  getters: {}
}
